<!DOCTYPE html>
<html lang="zh-CN">
@include('/base.head')
<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">健身用品网上商店系统</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">健身用品网上商店系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="javascript:;">admin，欢迎您</a></li>
                <li><a href="/adminLogout" style="color: red">退出</a></li>
            </ul>
        </div>
    </div>
</nav>
<br>
<div class="container-fluid">
    <div class="row">
        <div class=" col-md-12">
            <h2 class="page-header">查看店主</h2>
            @if(session('__Ajax_RedirectFunc_status') == true)
                <div>
                    <div class="alert alert-success alert-dismissible fade in" role="alert">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                        <h3>成功</h3>
                        <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
                        <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
                    </div>
                </div>
            @endif
            @if(session('__Ajax_RedirectFunc_status') === false)
                <div >
                    <div class="alert alert-danger alert-dismissible fade in" role="alert">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                        <h3>失败</h3>
                        <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
                        <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
                    </div>
                </div>
            @endif
            <div class="panel-body" >
                <div class="form-inline" >
                    <div class="form-group navbar-right">
                        <form action="/#" method="get">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <div class="form-group">
                                <h4>查找店主：</h4>
                            </div>
                            <div class="form-group">
                                <input type="text"  name="#" class="form-control" placeholder="姓名"  required autofocus>
                            </div>
                            <button type="submit" class="btn btn-primary">确定</button>
                        </form>
                    </div>
                </div>
                <br>
                <hr>
                <!--表格-->
                <div class="table-responsive">
                    <table class="table table-bordered table-responsive table-striped table-hover">
                        <thead>
                        <tr>
                            <th>入驻时间</th>
                            <th>店主</th>
                            <th>店铺名称</th>
                            <th>店铺说明</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($businessData as $data)
                            <tr>
                                <td scope="row">{{$data->business_time}}</td>
                                <td>{{$data->business_name}}</td>
                                <td>{{$data->business_shop}}</td>
                                <td>{{$data->business_info}}</td>
                            </tr>
                        @endforeach
                        </tbody>
                    </table>
                    <hr>


                </div>
            </div>
        </div>

    </div>
</div>
</body>
</html>